package com.ssm.subject.application.convert;

import com.ssm.subject.application.dto.SubjectLikedDTO;
import com.ssm.subject.domain.bo.SubjectLikedBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface SubjectLikedDTOConvert {
    SubjectLikedDTOConvert INSTANCE = Mappers.getMapper(SubjectLikedDTOConvert.class);

    //dto转bo
    SubjectLikedBO subjectLikedDtoToBo(SubjectLikedDTO subjectLikedDto);

    //BOlist To DTOlist
    List<SubjectLikedDTO> subjectLikedBoListToDtoList(List<SubjectLikedBO> subjectLikedBOList);
}
